package com.manage.platform.dto.query;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.Null;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;

@Accessors(chain = true)
@Data
public class OrganizeQuery extends PageQuery implements Serializable {

    @Schema(description = "上级组织ID(0表示顶级组织)")
    private Long parentId;

    @Schema(description = "组织类型(COLLEGE:学院,DEPARTMENT:岗位)")
    private String type;

    @Schema(description = "组织名称")
    private String name;

    @Schema(description = "组织简称")
    private String shortName;

    @Schema(description = "组织描述")
    private String description;

    @Schema(description = "是否在列表公开显示(0:否,1:是)")
    private Integer isPublic;

    @Schema(description = "是否允许创建下级组织(0:否,1:是)")
    private Integer allowCreateSub;

}